/* 弹窗样式 */
.ua-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10000;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.ua-container.active {
    opacity: 1;
    pointer-events: all;
}

.ua-box {
    background: rgba(255,255,255,0.97);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    min-width: 380px;
    max-width: 90vw;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    position: relative;
    opacity: 0;
    border: 1px solid rgba(255,255,255,0.3);
}

.ua-container.active .ua-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ua-header {
    text-align: center;
    margin-bottom: 24px;
}

.ua-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 15px;
    animation: iconFloat 3s ease-in-out infinite;
    color: var(--icon-color, #3B82F6);
}

/* 根据弹窗类型设置图标颜色 */
.ua-container[data-type="success"] .ua-icon {
    --icon-color: #10B981;
}

.ua-container[data-type="warning"] .ua-icon {
    --icon-color: #F59E0B;
}

.ua-container[data-type="error"] .ua-icon {
    --icon-color: #EF4444;
}

.ua-container[data-type="info"] .ua-icon {
    --icon-color: #3B82F6;
}

.ua-container[data-type="question"] .ua-icon {
    --icon-color: #8B5CF6;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ua-title {
    margin: 16px 0 8px;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 700;
}

.ua-content {
    color: #4d4d4d;
    line-height: 1.7;
    margin-bottom: 32px;
    text-align: center;
    font-size: 18px;
}

.ua-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.ua-button {
    position: relative;
    overflow: hidden;
    padding: 14px 24px;
    background: var(--btn-color, #3B82F6);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ua-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.ua-button:active {
    transform: translateY(1px);
}

.ua-button.btn-primary {
    --btn-color: #3B82F6;
}

.ua-button.btn-success {
    --btn-color: #10B981;
}

.ua-button.btn-danger {
    --btn-color: #EF4444;
}

.ua-button.btn-warning {
    --btn-color: #F59E0B;
}

.ua-button.btn-info {
    --btn-color: #06B6D4;
}

.ua-button.btn-cancel {
    --btn-color: #6B7280;
}

@media (max-width: 768px) {
    .ua-box {
        padding: 24px;
        min-width: 300px;
    }
    
    .ua-icon {
        width: 60px;
        height: 60px;
    }
    
    .ua-title {
        font-size: 24px;
    }
    
    .ua-content {
        font-size: 16px;
    }
    
    .ua-button {
        padding: 12px 20px;
        font-size: 15px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .ua-box {
        padding: 20px;
        min-width: 260px;
    }
    
    .ua-icon {
        width: 50px;
        height: 50px;
    }
    
    .ua-title {
        font-size: 22px;
    }
    
    .ua-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .ua-button {
        width: 100%;
    }
}